package com.example.demo.entity;

import org.springframework.beans.factory.FactoryBean;

/**
 * @Author : 叶荻风
 * @create : 2024/5/20 17:35
 */
public class MyFactoryBean implements FactoryBean<Person> {
    @Override
    public Person getObject() throws Exception {
        return new Person();
    }

    @Override
    public Class<?> getObjectType() {
        return Person.class;
    }

    @Override
    public boolean isSingleton() {
        return FactoryBean.super.isSingleton();
    }


}
